FROM java:8-jre

RUN mkdir -p /duckweed-user-biz

WORKDIR /duckweed-user-biz

ARG JAR_FILE=target/duckweed-user-biz.jar

COPY ${JAR_FILE} duckweed-user-biz.jar

EXPOSE 7073

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

CMD sleep 30; java -jar duckweed-user-biz.jar $JAVA_OPTS
